<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改话题举报')" />
	<th:block th:include="include :: select2-css" />
	<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-topicComplain-edit" th:object="${topicComplain}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-2 control-label">话题名称：</label>
				<div class="col-sm-3">
					<input th:value="${topicName}" class="form-control" type="text">
				</div>


				<label class="col-sm-2 control-label">举报人名称：</label>
				<div class="col-sm-3">
					<input  th:value="${userName}" class="form-control" type="text">
				</div>


			</div>
			<div class="form-group">



				<label class="col-sm-2 control-label">有效值：</label>
				<div class="col-sm-3">
					<select id="valid" name="valid" class="form-control m-b"
							th:field="*{valid}">
						<option value=1>有效</option>
						<option value=0>无效</option>
					</select>
				</div>
				<label class="col-sm-2 control-label">举报审核 ：</label>
				<div class="col-sm-3">
					<select id="complainVerify" name="complainVerify" class="form-control m-b"
							th:field="*{complainVerify}">
						<option value=2>隐藏</option>
						<option value=1>忽略</option>
						<option value=0>待审核</option>
					</select>
				</div>
			</div>
			<div class="form-group">	


				<label class="col-sm-2 control-label">建立日期：</label>
				<div class="col-sm-3">
					<input id="createDate" name="createDate" th:value="${#dates.format(topicComplain.createDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
				</div>

				<label class="col-sm-2 control-label">修改日期：</label>
				<div class="col-sm-3">
					<input id="modifyDate" name="modifyDate" th:value="${#dates.format(topicComplain.modifyDate, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">举报内容：</label>
				<div class="col-sm-8">
					<textarea id="complainContent" name="complainContent" th:field="*{complainContent}" class="form-control" type="text"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
	<th:block th:include="include :: select2-js" />
	<th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
		var prefix = ctx + "topicComplain/topicComplain";
		$("#form-topicComplain-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-topicComplain-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
